public class Test2 {
    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double a,double b,double c){
        return a+b;
    }
    public static void main(String[] args){
        int a = 1;
        int b = 1;
        double d = 3.4;
        double c = 4.4;
        double f = 2.2;
        System.out.println(add(a,b));
        System.out.println(add(c,d,f));
    }
}
